package org.tjc.net.manager.config.json;

import lombok.Data;


import java.util.ArrayList;
import java.util.List;

/**
 * @Author: tjc
 * @description
 * @Date Created in 22:44 2020-12-09
 */
@Data
public abstract class NgModule {
    private int ctxIndex;
    private int index;
    NgModule ctx;
    List<NgCommand> commands = new ArrayList<>();
    /**模块类型**/
    private int type;


    protected void addCommand(NgCommand ngCmd) {
        commands.add(ngCmd);
    }

    public abstract void init();
}
